package net.googlecode.harchenko.task3;

import java.math.BigDecimal;

/**
 * Created by IntelliJ IDEA.
 * User: undertext
 * Date: 28.03.11
 * Time: 23:15
 * To change this template use File | Settings | File Templates.
 */

/**
 * Class, that realize Director.
 */
public class Director extends Person {

    /**
     * Constructor of class Director.
     *
     * @param firstName Firstname of the person.
     * @param lastName  Lastname of the person.
     * @param age       Age of the person.
     * @param rate      Rate of the person.
     * @param bonusAmt  Bonus amount of the person.
     */
    public Director(final String firstName, final  String lastName,
                    final  int age, final  BigDecimal rate,
                    final  BigDecimal bonusAmt) {
        super(firstName, lastName, age, rate, bonusAmt);
    }

    /**
     * Override method for comfortable output.
     *
     * @return Comfortable presentation of object of the class.
     */
    public String toString() {
        return "Boss >> " + getLastName() + " " + getFirstName()
                + ",age:" + getAge();
    }

}
